///////////////////////////////////////////////////////////
//  CChoicesView.h
//  Implementation of the Class CChoicesView
//  Created on:      21-Sep-2013 9:36:32 AM
//  Original author: Jakkaphan Aiemcharoenjit
///////////////////////////////////////////////////////////

#if !defined(EA_3E6A17D1_8DEE_45ab_997F_BA8BD021F03A__INCLUDED_)
#define EA_3E6A17D1_8DEE_45ab_997F_BA8BD021F03A__INCLUDED_

#include "IViewCtrl.h"
#include "IChoices.h"
#include "IWindowDirector.h"

using namespace Data;

namespace UI
{
class CChoicesView : public IViewCtrl
{

public:
  CChoicesView(IWindowDirector* director);
	virtual ~CChoicesView();
	virtual IViewCtrl::ViewType GetType() const;
	virtual void Initialize();
	virtual void Refresh();
	virtual void ShowView(bool show = true);
	void OnClickedCancel();
	void OnClickedOK();
	void SetChoices(IChoices* choices, int curSel);
  int GetChoice();

private:
  bool OnClickedNavigationBar(CNavigationBar *naviBar, int button);

private:
	IViewCtrl::ViewType m_type;
	IWindowDirector*    m_parrentWnd;
	IChoices*           m_choices;
  int                 m_curSelChoice;
  CNavigationBarPtr   m_navigationBar;
  CListBoxPtr         m_listBox;
};
}
#endif // !defined(EA_3E6A17D1_8DEE_45ab_997F_BA8BD021F03A__INCLUDED_)
